import Vue from 'vue'
import Router from 'vue-router'
import SearchPage from '@/components/page/index'
import AddUser from '@/components/page/addUser'
import EditInfo from '@/components/page/editInfo'
import Statistics from '@/components/page/statisticsPage'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: '/dist/',
  routes: [
    {
      path: '/',
      name: 'SearchPage',
      component: SearchPage
    },
    {
      path: '/add',
      name: 'AddUser',
      component: AddUser
    },
    {
      path: '/edit',
      name: 'EditInfo',
      component: EditInfo
    },
    {
      path: '/Statistics',
      name: 'Statistics',
      component: Statistics
    }
  ]
})
